package com.qqt.csr.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qqt.csr.order.entity.WorkOrder;
import java.util.List;

import com.qqt.csr.order.vo.req.QueryPageWorkOrderReqVO;
import com.qqt.csr.order.vo.resp.WorkOrderDetailRespVO;
import com.qqt.csr.order.vo.resp.WorkOrderRespVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface WorkOrderMapper extends BaseMapper<WorkOrder> {
    int updateBatch(@Param("list") List<WorkOrder> list);

    int updateBatchSelective(@Param("list") List<WorkOrder> list);

    int batchInsert(@Param("list") List<WorkOrder> list);

    IPage<WorkOrderRespVO> page(IPage<WorkOrderRespVO> page, @Param("query") QueryPageWorkOrderReqVO query);

    WorkOrderDetailRespVO detail(@Param("orderId") Long orderId);

    void updateElapsedTime(@Param("list") List<Long> orderIdList, @Param("elapsedTime") Long elapsedTime);
}